package cc.sunni.rabbitmq.dao;

import cc.sunni.rabbitmq.entity.MqMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author jl
 * @since 2021-01-05 19:44:01
 */
@Mapper
public interface MqMessageDao extends BaseMapper<MqMessage> {

    List<MqMessage> queryByStatusAndTimeoutMessage();

    void update4Resend(String messageId);

}
